home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / What's New / • What was new 08⁄00 / Sample Code / Interapplication Comm / MoreOSL / MoreQuickDraw / MoreQuickDraw.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.2 KB  |  70 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MoreQuickDraw.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    Pete Gontier
  7.  
  8.     Copyright:    Copyright (c) 1998 Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <4>     20/3/00    Quinn   Implement CreateNewPort and DisposePort for non-Carbon clients.
  21.          <3>      2/9/99    PCG     more TARGET_CARBON
  22.          <2>    11/11/98    PCG     fix headers
  23.          <1>    11/10/98    PCG     first big re-org at behest of Quinn
  24.  
  25.     Old Change History (most recent first):
  26.  
  27.          <5>    10/11/98    Quinn   Convert "MorePrefix.h" to "MoreSetup.h".
  28.          <4>      9/9/98    PCG     re-work import and export pragmas
  29.          <3>     8/28/98    PCG     add IsColorGrafPort
  30.          <2>     7/24/98    PCG        coddle linker (C++, CFM-68K)
  31.          <1>     6/16/98    PCG     initial checkin
  32. */
  33.  
  34. #pragma once
  35.  
  36. #include "MoreSetup.h"
  37.  
  38. #include <QuickDraw.h>
  39.  
  40. #ifdef __cplusplus
  41.     extern "C" {
  42. #endif
  43.  
  44. #pragma import on // for clients
  45. #pragma export on // for building a library
  46.  
  47. pascal OSErr    InitMoreQuickDraw    (void);
  48. pascal Boolean    HaveColorQuickDraw    (void);
  49. pascal Boolean    IsColorGrafPort        (GrafPtr);
  50. pascal OSErr    ShowWatchCursor        (void);
  51. pascal void        SetArrowCursor        (void);
  52.  
  53. #pragma import reset // for clients
  54. #pragma export reset // for building a library
  55.  
  56. #if !TARGET_API_MAC_CARBON
  57.     pascal QDGlobalsPtr GetQDGlobalsPtr (void);
  58. #    define GetQDGlobalsArrow(x) do { *(x)=GetQDGlobalsPtr()->arrow; } while (false)
  59. #    define SetQDGlobalsArrow(x) do { GetQDGlobalsPtr()->arrow=*(x); } while (false)
  60. #    define GetRegionBounds(rgn,rect) do { *(rect) = (**(rgn)).rgnBBox; } while (false)
  61.  
  62.     extern pascal CGrafPtr CreateNewPort(void);
  63.     extern pascal void DisposePort(CGrafPtr port);
  64.  
  65. #endif
  66.  
  67. #ifdef __cplusplus
  68.     }
  69. #endif
  70.